import { findUser } from '@/apis/userAPI'
import { ref } from 'vue'

export default () => {
  const user = ref<UserModel>()

  async function find() {
    const { data } = await findUser()
    user.value = data
  }

  return {
    find,
    user,
  }
}
